<?php

if (!defined("INDEX_CHECK")) {die ("<center>Vous ne pouvez pas ouvrir cette page directement.</center>");}

global $session, $globales;

if (permission("admin") == "oui")
{
	$paql = "SELECT `id`, `titre` FROM `".$globales['db_prefixe']."_modules`";
	$req = mysql_query($paql);
	
	echo "<table border=1 style=\"width: 80%; border: 1px solid white; margin: auto;\">\n"
	. "<tr>\n"
	. "<td style=\"width: 10%; padding: 10px;\" align=\"center\" valign=\"top\"><b>#</b></td>\n"
	. "<td style=\"width: 90%; padding: 10px;\" align=\"center\" valign=\"top\"><b>Titre</b></td>\n"
	. "</tr>\n";
	
	while(list($id, $titre) = mysql_fetch_array($req))
	{
		echo "<tr>\n"
		. "<td style=\"width: 10%; padding: 5px;\" align=\"center\" valign=\"top\"> ".$id." </td>\n"
		. "<td style=\"width: 90%; padding: 5px;\" align=\"center\" valign=\"top\"> ".$titre."</td>\n"
		. "</tr>\n";
	}
	echo "</table>\n";

	echo "<br>\n"
	. "<div style=\"width: 100%; text-align: center;\">[&nbsp;<a href=\"index.php?do=admin\">Retour</a>&nbsp;]</div>\n";
}

?>